package com.ld.security.common.mybatis.anno;

import com.ld.security.common.mybatis.constant.DateTypeConstant;
import com.ld.security.common.mybatis.constant.NumberTypeConstant;

import java.lang.annotation.*;

/**
 * 分组字段
 */
@Target(value = {ElementType.FIELD,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CollectKey {


    /**
     * 数字映射
     * @return
     */
    NumberTypeConstant numberFunc() default NumberTypeConstant.anon;


    /**
     * 日期映射
     * @return
     */
    DateTypeConstant dateFunc() default DateTypeConstant.anon;


}
